//
//  UIView+CQPopupSelfCenterAction.h
//  AppCommonUICollect
//
//  Created by ciyouzen on 2019/8/13.
//  Copyright © 2019 dvlproad. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CJPopupContainer/CQPopupEnum.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (CQPopupSelfCenterAction) {
    
}

#pragma mark - 从window中间弹出当前视图的相关代码
/**
 *  显示当前视图到window中间
 *
 *  @param popupViewHeight              弹出视图的高度(宽度已固定)
 */
- (void)cqCustom_self_popupInCenterWindowWithHeight:(CGFloat)popupViewHeight;

/*
 *  显示当前视图到window中间
 *
 *  @param popupViewSize            弹出视图的大小
 *  @param centerOffset             弹窗弹出位置的中心与window中心的偏移量
 *  @param effectType               effectType
 *  @param tapBlankShouldHide       点击背景是否应该隐藏
 */
- (void)cqCustom_self_popupInCenterWindowWithSize:(CGSize)popupViewSize
                                     centerOffset:(CGPoint)centerOffset
                                       effectType:(CQEffectFor)effectType
                               tapBlankShouldHide:(BOOL)tapBlankShouldHide;

/// 从window中间隐藏当前视图
- (void)cqCustom_self_popupHideCenter;


@end

NS_ASSUME_NONNULL_END
